package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonValue;
import com.smartfactory.sail.entity.enums.UserAttendanceEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 员工考勤
 * </p>
 *
 * @author 王巨壁
 * @since 2019-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserAttendance对象", description="员工考勤")
public class UserAttendance implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "员工编码")
    @TableField("userId")
    private Long userId;

    @ApiModelProperty(value = "年份 yyyy")
    private String year;

    @ApiModelProperty(value = "月份 MM")
    private String month;

    @ApiModelProperty(value = "日期天dd")
    private String day;

    @TableField("attendanceTime")
    private String attendanceTime;

    @JsonValue
    @ApiModelProperty(value = "考勤类型1.上班2下班3请假")
    @TableField("attendanceType")
    private UserAttendanceEnum attendanceType;

    @ApiModelProperty(value = "请假类型:1.事假2.病假3.产假4.年假5婚假6丧假7探亲假")
    @TableField("leaveType")
    private Integer leaveType;

    @ApiModelProperty(value = "申请信息id")
    @TableField("applicationId")
    private Long applicationId;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private String createTime;


}
